package com.nbsaas.boot.student.rest.convert;

import com.nbsaas.boot.student.data.entity.Student;
import com.nbsaas.boot.student.api.domain.simple.StudentSimple;

import com.nbsaas.boot.rest.api.Converter;
/**
* 列表对象转换器
*/

public class StudentSimpleConvert implements Converter<StudentSimple, Student> {




@Override
public StudentSimple convert(Student source) {
    StudentSimple result = new StudentSimple();

                result.setPhone(source.getPhone());
                result.setName(source.getName());
                result.setStudentNo(source.getStudentNo());
                result.setAvatar(source.getAvatar());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}